import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/view/index'
import Index2 from '@/view/index2'
import Fund from '@/view/fund'
import CaseAnalysis from '@/view/caseAnalysis'
import globalPrevention from "../view/globalPrevention"
import Part_top from "@/components/Part_top";
import Part_left from "@/components/Part_left";
import Part_right from "@/components/Part_right";
import Part_middle from "@/components/Part_middle";
import Part2_top from "@/components/Part2_top";
import Part2_left from "@/components/Part2_left";
import Part2_right from "@/components/Part2_right";
import Part2_middle from "@/components/Part2_middle";
import subscreen_casses from "@/components/subscreen_cases";
import subscreen_fund from "@/components/subscreen_fund";
import subscreen_pating from "../components/subscreen_painting";
import Settlement from "@/components/Settlement";
import test from "@/view/test";
import table_insured from "@/components/table_insured";
import table_fund_inAndOut from "@/components/table_fund_inAndOut";
import table_casesRanking from "@/components/table_casesRanking";
import table_casesCycle from "@/components/table_casesCycle";
import table_casesIncrease from "@/components/table_casesIncrease";
import table_fundIncrease from "@/components/table_fundIncrease";
import table_collaborate from "@/components/table_collaborate";
import table_settlement from "@/components/table_settlement";
import table_map from "@/components/table_map";
import table_mapItem from "../components/table_mapItem";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      title:'主页',
      name: 'Index2',
      component: Index2
    },
    {
      path: '/index',
      title:'主页',
      name: 'Index',
      component: Index
    },
    {
      path: '/fund',
      name: 'Fund',
      component: Fund
    },
    {
      path: '/caseAnalysis',
      name: 'CaseAnalysis',
      component: CaseAnalysis
    },
    {
      path: '/globalPrevention',
      name: 'globalPrevention',
      component: globalPrevention
    },
    {
      path: '/part_top',
      title:'主页头部',
      name: 'part_top',
      component: Part_top
    },
    {
      path: '/part_left',
      title:'主页左侧',
      name: 'part_left',
      component: Part_left
    },
    {
      path: '/part_right',
      title:'主页右侧',
      name: 'part_right',
      component: Part_right
    },
    {
      path: '/part_middle',
      title:'主页中部',
      name: 'part_middle',
      component: Part_middle
    },
    {
      path: '/part2_top',
      title:'主页头部',
      name: 'part2_top',
      component: Part2_top
    },
    {
      path: '/part2_left',
      title:'主页左侧',
      name: 'part2_left',
      component: Part2_left
    },
    {
      path: '/part2_right',
      title:'主页右侧',
      name: 'part2_right',
      component: Part2_right
    },
    {
      path: '/part2_middle',
      title:'主页中部',
      name: 'part2_middle',
      component: Part2_middle
    },
    {
      path: '/subscreen_casses',
      title:'子屏(案件事故)',
      name: 'subscreen_casses',
      component: subscreen_casses
    },
    {
      path: '/subscreen_fund',
      title:'子屏(基金)',
      name: 'subscreen_fund',
      component: subscreen_fund
    },
    {
      path: '/subscreen_fund',
      title:'子屏(基金)',
      name: 'subscreen_fund',
      component: subscreen_fund
    },
    {
      path: '/subscreen_pating',
      title:'子屏(画像)',
      name: 'subscreen_pating',
      component: subscreen_pating
    },
    {
      path: '/settlement',
      title:'弹框(工伤联网结算)',
      name: 'settlement',
      component: Settlement
    },
    {
      path: '/test',
      title:'测试页',
      name: 'test',
      component: test
    },
    {
      path: '/table_insured',
      title:'表组件--参保人数',
      name: 'table_insured',
      component: table_insured
    },
    {
      path: '/table_fund_inAndOut',
      title:'表组件--基金收支情况',
      name: 'table_fund_inAndOut',
      component: table_fund_inAndOut
    },
    {
      path: '/table_casesRanking',
      title:'表组件--案件事故排行',
      name: 'table_casesRanking',
      component: table_casesRanking
    },
    {
      path: '/table_casesCycle',
      title:'表组件--案件办理平均周期',
      name: 'table_casesCycle',
      component: table_casesCycle
    },
    {
      path: '/table_casesIncrease',
      title:'表组件--案件数事故率同比增幅',
      name: 'table_casesIncrease',
      component: table_casesIncrease
    },
    {
      path: '/table_fundIncrease',
      title:'表组件--基金收支净额同比增幅',
      name: 'table_fundIncrease',
      component: table_fundIncrease
    },
    {
      path: '/table_collaborate',
      title:'表组件--多跨协同',
      name: 'table_collaborate',
      component: table_collaborate
    },
    {
      path: '/table_settlement',
      title:'表组件--工伤联网结算',
      name: 'table_settlement',
      component: table_settlement
    },
    {
      path: '/table_map',
      title:'表组件--地图',
      name: 'table_map',
      component: table_map
    },
    {
      path: '/table_mapItem',
      title:'表组件--地图具体项目列表',
      name: 'table_mapItem',
      component: table_mapItem
    },
  ]
})
